#include "window/mainwindow.h"
#include <QApplication>
#include "window/maincharts.h"
#include "user/udp_mavlink.h"
#include "user/gamepadthread.h"

MainWindow *uwindow;

int main(int argc, char *argv[])
{
    //初始化
    QApplication app(argc, argv);
    //通信实例
    User_Send = new udp_mavlink("192.168.1.88", "14550","14551");
    //主窗口实例
    uwindow = new MainWindow;
    uwindow->setWindowTitle("RoboMaster");
    uwindow->show();
    //手柄实例
    UsergamepadThread = new GamepadThread();

    return app.exec();
}
